if $1
then
	echo "Enter  compile link"
	echo "such as:"
	echo "        ./buil_all.sh arm-linux-g++"
	exit
else
	compilelink=$1
fi


echo "path $PWD"

PP=$PWD
 
echo "_base"
cd $PP/_base/
make CC=$compilelink
sleep 1
  
echo "_ZNet"
cd $PP/_ZNet/
make CC=$compilelink
sleep 1

echo "dbms"
cd $PP/dbms/
make CC=$compilelink
sleep 1

echo "tinyxml"
cd $PP/tinyxml/
make CC=$compilelink
sleep 1

echo "fore_protocol_base"
cd $PP/fore_protocol_base/
make CC=$compilelink
sleep 1

#echo "sqlite3"
#cd $PP/sqlite3/
#make CC=g++
sleep 1


